<?php

/**
 * menu components.
 *
 * @package    cpfaizenay
 * @subpackage menu
 * @author     Manu
 * @version    1.0
 */
class menuComponents extends sfComponents
{
 /**
  * Executes index action
  *
  * @param sfWebRequest $request A request object
  */
  public function executeMenu(sfWebRequest $request)
  {
     $this->menu_list = Doctrine::getTable('Category')->getMenuCategories(null, 'published')->fetchArray();
     
//     $category = new Category();
     //$this->menu_list = $category->recursiveCategories($this->menu_list, current($this->menu_list));
  }
}
